// import loadable from './loadable'
import asyncComponent from '@/components/lazy';

let routerList = [
  {
    path: '/promMagt/list',
    component: asyncComponent(() => import('@/pages/promMagt/PromList')),
    name: '促销列表',
  },
  {
    path: '/promMagt/signUp',
    component: asyncComponent(() => import('@/pages/promMagt/PromSignUp')),
    name: '促销报名',
  },
];

routerList = routerList.map((router, index) => ({
  ...router,
  key: `router_${index}`,
  exact: true,
}));

export default routerList;
